Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
midifile-ts
Advanced tools
[![npm version](https://badge.fury.io/js/midifile-ts.svg)](https://badge.fury.io/js/midifile-ts) [![Actions Status](https://github.com/ryohey/midifile-ts/workflows/CI/badge.svg?branch=master)](https://github.com/ryohey/midifile-ts/actions) [![License: MIT
TypeScript MIDI file parser forked from jasmid https://github.com/gasman/jasmid
npm install midifile-ts --save
import { read } from "midifile-ts"
const midi = read(data) // { header, tracks }
import { read } from "midifile-ts"
const data = fs.readFileSync("song.mid")
const midi = read(data)
import { read, MidiFile } from "midifile-ts"
const changeFileInput = (
input: HTMLInputElement,
callback: (midi: MidiFile|null) => void
) => {
if (input.files === null || input.files.length === 0) {
return
}
const file = input.files[0]
const reader = new FileReader()
reader.onload = e => {
if (e.target == null) {
callback(null)
return
}
const buf = e.target.result as ArrayBuffer
const midi = read(buf)
callback(midi)
}
reader.readAsArrayBuffer(file)
}
FAQs
[![npm version](https://badge.fury.io/js/midifile-ts.svg)](https://badge.fury.io/js/midifile-ts) [![Actions Status](https://github.com/ryohey/midifile-ts/workflows/CI/badge.svg?branch=master)](https://github.com/ryohey/midifile-ts/actions) [![License: MIT
The npm package midifile-ts receives a total of 67 weekly downloads. As such, midifile-ts popularity was classified as not popular.
We found that midifile-ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.